package svc.elib.analysis;

import java.io.IOException;

import svc.elib.db.Database;
import svc.elib.socnet.EvolutionarySnapshots;
import svc.elib.socnet.Net;
import svc.elib.socnet.SocConstructor;

public class DumpAuthorsPerYear {

	public static void main(String[] args) 
		throws IOException
	{
		Database db = new Database("eLibData.csv", 1932, 2011);
		System.out.println(db.info());
		SocConstructor soc = new SocConstructor(db);
		Net net = soc.getNet();
		
		EvolutionarySnapshots es = new EvolutionarySnapshots(net);
		Net[] snaps = es.getSnapshots();
		int startYear = es.getStartYear();
		
		for (int i = 30; i < 31; i++) {
			int year = startYear + i;
			Net current = snaps[i];
			System.out.println("--- " + year);
			current.dumpAuthors();
			System.out.println("\n\n");
		}
	}
	
}
